package home.projects.aop.components;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class TestAspect {

   @Before("methodsToBeProfiled()")
   public void profile(JoinPoint pjp) {
      System.out.println(pjp.getSignature());
   }

   @Pointcut("execution(* home.projects.aop.components.TestComponent.execute(..))")
   public void methodsToBeProfiled() {
   }

}
